package com.bucks.bean;

import lombok.*;

import javax.persistence.*;
import java.util.List;

/**

 * @date 2019-10-17
 */
@Entity
@Table
@Builder
@Data
@ToString(callSuper = true)
@NoArgsConstructor
@AllArgsConstructor
public class CoffeeOrder extends BaseEntity {

    private String customer;
    @ManyToMany
    @JoinTable(name = "T_ORDER_COFFEE")
    private List<Coffee> items;
    @Column(nullable = false)
    private OrderState state;
}

